home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 22 / PC Actual CD 22.iso / SHARE / prog / POVRAY / E-P-O.ZIP / WALL.INC < prev    next >
Encoding:
Text File  |  1996-10-31  |  17.0 KB  |  320 lines

  1.  
  2. //------------------------------------------------------------------->
  3. //
  4. // wall.inc
  5. //
  6. // "Easy POV Oven"
  7. //
  8. // Written By: Paul T. Dawson
  9. //             ptdawson@voicenet.com
  10. //             http://www.voicenet.com/~ptdawson
  11. //
  12. // All code and techniques are PUBLIC DOMAIN - have fun with it!
  13. //
  14. //------------------------------------------------------------------->
  15. //
  16. // This file builds the "Wall_Tile" object.
  17. //
  18. // This file is a little messy, with a lot of #declares and bunches of
  19. // #if-#end blocks, sorry about that!!! 8-)
  20. //
  21. //------------------------------------------------------------------->
  22. //
  23. // Make the textures.
  24.  
  25.         // Basic box.
  26.         #declare Tex_A = texture { T_Silver_5C }
  27.  
  28.         // Border pieces.
  29.         #declare Tex_B = texture { pigment { SteelBlue } }
  30.  
  31.         // Blue to purple.
  32.         #declare Tex_001 = texture { pigment { color rgb < 0.0, 0.0, 1.0 > } }
  33.         #declare Tex_002 = texture { pigment { color rgb < 0.1, 0.0, 1.0 > } }
  34.         #declare Tex_003 = texture { pigment { color rgb < 0.2, 0.0, 1.0 > } }
  35.         #declare Tex_004 = texture { pigment { color rgb < 0.3, 0.0, 1.0 > } }
  36.         #declare Tex_005 = texture { pigment { color rgb < 0.4, 0.0, 1.0 > } }
  37.         #declare Tex_006 = texture { pigment { color rgb < 0.5, 0.0, 1.0 > } }
  38.         #declare Tex_007 = texture { pigment { color rgb < 0.6, 0.0, 1.0 > } }
  39.         #declare Tex_008 = texture { pigment { color rgb < 0.7, 0.0, 1.0 > } }
  40.         #declare Tex_009 = texture { pigment { color rgb < 0.8, 0.0, 1.0 > } }
  41.         #declare Tex_010 = texture { pigment { color rgb < 0.9, 0.0, 1.0 > } }
  42.         #declare Tex_011 = texture { pigment { color rgb < 1.0, 0.0, 1.0 > } }
  43.  
  44.         // Cyan to blue.
  45.         #declare Tex_101 = texture { pigment { color rgb < 0.0, 1.0, 1.0 > } }
  46.         #declare Tex_102 = texture { pigment { color rgb < 0.0, 0.9, 1.0 > } }
  47.         #declare Tex_103 = texture { pigment { color rgb < 0.0, 0.8, 1.0 > } }
  48.         #declare Tex_104 = texture { pigment { color rgb < 0.0, 0.7, 1.0 > } }
  49.         #declare Tex_105 = texture { pigment { color rgb < 0.0, 0.6, 1.0 > } }
  50.         #declare Tex_106 = texture { pigment { color rgb < 0.0, 0.5, 1.0 > } }
  51.         #declare Tex_107 = texture { pigment { color rgb < 0.0, 0.4, 1.0 > } }
  52.         #declare Tex_108 = texture { pigment { color rgb < 0.0, 0.3, 1.0 > } }
  53.         #declare Tex_109 = texture { pigment { color rgb < 0.0, 0.2, 1.0 > } }
  54.         #declare Tex_110 = texture { pigment { color rgb < 0.0, 0.1, 1.0 > } }
  55.         #declare Tex_111 = texture { pigment { color rgb < 0.0, 0.0, 1.0 > } }
  56.  
  57.         // Yellow to green.
  58.         #declare Tex_201 = texture { pigment { color rgb < 1.0, 1.0, 0.0 > } }
  59.         #declare Tex_202 = texture { pigment { color rgb < 0.9, 1.0, 0.0 > } }
  60.         #declare Tex_203 = texture { pigment { color rgb < 0.8, 1.0, 0.0 > } }
  61.         #declare Tex_204 = texture { pigment { color rgb < 0.7, 1.0, 0.0 > } }
  62.         #declare Tex_205 = texture { pigment { color rgb < 0.6, 1.0, 0.0 > } }
  63.         #declare Tex_206 = texture { pigment { color rgb < 0.5, 1.0, 0.0 > } }
  64.         #declare Tex_207 = texture { pigment { color rgb < 0.4, 1.0, 0.0 > } }
  65.         #declare Tex_208 = texture { pigment { color rgb < 0.3, 1.0, 0.0 > } }
  66.         #declare Tex_209 = texture { pigment { color rgb < 0.2, 1.0, 0.0 > } }
  67.         #declare Tex_210 = texture { pigment { color rgb < 0.1, 1.0, 0.0 > } }
  68.         #declare Tex_211 = texture { pigment { color rgb < 0.0, 1.0, 0.0 > } }
  69.  
  70.         // Red to yellow.
  71.         #declare Tex_301 = texture { pigment { color rgb < 1.0, 0.0, 0.0 > } }
  72.         #declare Tex_302 = texture { pigment { color rgb < 1.0, 0.1, 0.0 > } }
  73.         #declare Tex_303 = texture { pigment { color rgb < 1.0, 0.2, 0.0 > } }
  74.         #declare Tex_304 = texture { pigment { color rgb < 1.0, 0.3, 0.0 > } }
  75.         #declare Tex_305 = texture { pigment { color rgb < 1.0, 0.4, 0.0 > } }
  76.         #declare Tex_306 = texture { pigment { color rgb < 1.0, 0.5, 0.0 > } }
  77.         #declare Tex_307 = texture { pigment { color rgb < 1.0, 0.6, 0.0 > } }
  78.         #declare Tex_308 = texture { pigment { color rgb < 1.0, 0.7, 0.0 > } }
  79.         #declare Tex_309 = texture { pigment { color rgb < 1.0, 0.8, 0.0 > } }
  80.         #declare Tex_310 = texture { pigment { color rgb < 1.0, 0.9, 0.0 > } }
  81.         #declare Tex_311 = texture { pigment { color rgb < 1.0, 1.0, 0.0 > } }
  82.  
  83.         // Red to purple.
  84.         #declare Tex_401 = texture { pigment { color rgb < 1.0, 0.0, 0.0 > } }
  85.         #declare Tex_402 = texture { pigment { color rgb < 1.0, 0.0, 0.1 > } }
  86.         #declare Tex_403 = texture { pigment { color rgb < 1.0, 0.0, 0.2 > } }
  87.         #declare Tex_404 = texture { pigment { color rgb < 1.0, 0.0, 0.3 > } }
  88.         #declare Tex_405 = texture { pigment { color rgb < 1.0, 0.0, 0.4 > } }
  89.         #declare Tex_406 = texture { pigment { color rgb < 1.0, 0.0, 0.5 > } }
  90.         #declare Tex_407 = texture { pigment { color rgb < 1.0, 0.0, 0.6 > } }
  91.         #declare Tex_408 = texture { pigment { color rgb < 1.0, 0.0, 0.7 > } }
  92.         #declare Tex_409 = texture { pigment { color rgb < 1.0, 0.0, 0.8 > } }
  93.         #declare Tex_410 = texture { pigment { color rgb < 1.0, 0.0, 0.9 > } }
  94.         #declare Tex_411 = texture { pigment { color rgb < 1.0, 0.0, 1.0 > } }
  95.  
  96.         // Green to cyan.
  97.         #declare Tex_501 = texture { pigment { color rgb < 0.0, 1.0, 0.0 > } }
  98.         #declare Tex_502 = texture { pigment { color rgb < 0.0, 1.0, 0.1 > } }
  99.         #declare Tex_503 = texture { pigment { color rgb < 0.0, 1.0, 0.2 > } }
  100.         #declare Tex_504 = texture { pigment { color rgb < 0.0, 1.0, 0.3 > } }
  101.         #declare Tex_505 = texture { pigment { color rgb < 0.0, 1.0, 0.4 > } }
  102.         #declare Tex_506 = texture { pigment { color rgb < 0.0, 1.0, 0.5 > } }
  103.         #declare Tex_507 = texture { pigment { color rgb < 0.0, 1.0, 0.6 > } }
  104.         #declare Tex_508 = texture { pigment { color rgb < 0.0, 1.0, 0.7 > } }
  105.         #declare Tex_509 = texture { pigment { color rgb < 0.0, 1.0, 0.8 > } }
  106.         #declare Tex_510 = texture { pigment { color rgb < 0.0, 1.0, 0.9 > } }
  107.         #declare Tex_511 = texture { pigment { color rgb < 0.0, 1.0, 1.0 > } }
  108.  
  109.  
  110.         // Purple to yellow.
  111.         #declare Tex_601 = texture { pigment { color rgb < 1.0, 0.0, 1.0 > } }
  112.         #declare Tex_602 = texture { pigment { color rgb < 1.0, 0.1, 0.9 > } }
  113.         #declare Tex_603 = texture { pigment { color rgb < 1.0, 0.2, 0.8 > } }
  114.         #declare Tex_604 = texture { pigment { color rgb < 1.0, 0.3, 0.7 > } }
  115.         #declare Tex_605 = texture { pigment { color rgb < 1.0, 0.4, 0.6 > } }
  116.         #declare Tex_606 = texture { pigment { color rgb < 1.0, 0.5, 0.5 > } }
  117.         #declare Tex_607 = texture { pigment { color rgb < 1.0, 0.6, 0.4 > } }
  118.         #declare Tex_608 = texture { pigment { color rgb < 1.0, 0.7, 0.3 > } }
  119.         #declare Tex_609 = texture { pigment { color rgb < 1.0, 0.8, 0.2 > } }
  120.         #declare Tex_610 = texture { pigment { color rgb < 1.0, 0.9, 0.1 > } }
  121.         #declare Tex_611 = texture { pigment { color rgb < 1.0, 1.0, 0.0 > } }
  122.  
  123.         // Cyan to purple.
  124.         #declare Tex_701 = texture { pigment { color rgb < 0.0, 1.0, 1.0 > } }
  125.         #declare Tex_702 = texture { pigment { color rgb < 0.1, 0.9, 1.0 > } }
  126.         #declare Tex_703 = texture { pigment { color rgb < 0.2, 0.8, 1.0 > } }
  127.         #declare Tex_704 = texture { pigment { color rgb < 0.3, 0.7, 1.0 > } }
  128.         #declare Tex_705 = texture { pigment { color rgb < 0.4, 0.6, 1.0 > } }
  129.         #declare Tex_706 = texture { pigment { color rgb < 0.5, 0.5, 1.0 > } }
  130.         #declare Tex_707 = texture { pigment { color rgb < 0.6, 0.4, 1.0 > } }
  131.         #declare Tex_708 = texture { pigment { color rgb < 0.7, 0.3, 1.0 > } }
  132.         #declare Tex_709 = texture { pigment { color rgb < 0.8, 0.2, 1.0 > } }
  133.         #declare Tex_710 = texture { pigment { color rgb < 0.9, 0.1, 1.0 > } }
  134.         #declare Tex_711 = texture { pigment { color rgb < 1.0, 0.0, 1.0 > } }
  135.  
  136. //------------------------------------------------------------------->
  137. //
  138. // Build the wall block.
  139.  
  140.         #declare Count_Temp = 0
  141.  
  142.         #declare Wall_Tile = mesh {
  143.  
  144.         // Two big triangles for back wall.
  145.                 triangle { <0,0,12><12,0,12><12,12,12> texture{Tex_A} }
  146.                 triangle { <0,0,12><0,12,12><12,12,12> texture{Tex_A} }
  147.  
  148.         // Two big triangles for left side wall.
  149.                 triangle { <0,0,0><0,0,12><0,12,12> texture{Tex_A} }
  150.                 triangle { <0,0,0><0,12,0><0,12,12> texture{Tex_A} }
  151.  
  152.         // Two big triangles for bottom wall.
  153.                 triangle { <0,0,0><12,0,0><12,0,12> texture{Tex_A} }
  154.                 triangle { <0,0,0><0,0,12><12,0,12> texture{Tex_A} }
  155.  
  156.         // Two big triangles for right side wall.
  157.                 triangle { <12,0,0><12,0,12><12,12,12> texture{Tex_A} }
  158.                 triangle { <12,0,0><12,12,0><12,12,12> texture{Tex_A} }
  159.  
  160.         // Two big triangles for top wall.
  161.                 triangle { <0,12,0><12,12,0><12,12,12> texture{Tex_A} }
  162.                 triangle { <0,12,0><0,12,12><12,12,12> texture{Tex_A} }
  163.  
  164.         #declare Count_Temp = Count_Temp + 10
  165.  
  166. // Now start the angled "fins".
  167.  
  168.         #declare FIN = 0.4
  169.  
  170.         // Left.
  171.                 #declare A = 1 #while ( A <= 11 )
  172.  
  173. #if(A= 1) triangle{<0,A,0><0,A+FIN,12><6+3,A,12>texture{Tex_001}} #end
  174. #if(A= 2) triangle{<0,A,0><0,A+FIN,12><6+3,A,12>texture{Tex_002}} #end
  175. #if(A= 3) triangle{<0,A,0><0,A+FIN,12><6+3,A,12>texture{Tex_003}} #end
  176. #if(A= 4) triangle{<0,A,0><0,A+FIN,12><6+3,A,12>texture{Tex_004}} #end
  177. #if(A= 5) triangle{<0,A,0><0,A+FIN,12><6+3,A,12>texture{Tex_005}} #end
  178. #if(A= 6) triangle{<0,A,0><0,A+FIN,12><6+3,A,12>texture{Tex_006}} #end
  179. #if(A= 7) triangle{<0,A,0><0,A+FIN,12><6+3,A,12>texture{Tex_007}} #end
  180. #if(A= 8) triangle{<0,A,0><0,A+FIN,12><6+3,A,12>texture{Tex_008}} #end
  181. #if(A= 9) triangle{<0,A,0><0,A+FIN,12><6+3,A,12>texture{Tex_009}} #end
  182. #if(A=10) triangle{<0,A,0><0,A+FIN,12><6+3,A,12>texture{Tex_010}} #end
  183. #if(A=11) triangle{<0,A,0><0,A+FIN,12><6+3,A,12>texture{Tex_011}} #end
  184.  
  185. #if(A= 1) triangle{<0,A,0><0,A-FIN,12><6+3,A,12>texture{Tex_101}} #end
  186. #if(A= 2) triangle{<0,A,0><0,A-FIN,12><6+3,A,12>texture{Tex_102}} #end
  187. #if(A= 3) triangle{<0,A,0><0,A-FIN,12><6+3,A,12>texture{Tex_103}} #end
  188. #if(A= 4) triangle{<0,A,0><0,A-FIN,12><6+3,A,12>texture{Tex_104}} #end
  189. #if(A= 5) triangle{<0,A,0><0,A-FIN,12><6+3,A,12>texture{Tex_105}} #end
  190. #if(A= 6) triangle{<0,A,0><0,A-FIN,12><6+3,A,12>texture{Tex_106}} #end
  191. #if(A= 7) triangle{<0,A,0><0,A-FIN,12><6+3,A,12>texture{Tex_107}} #end
  192. #if(A= 8) triangle{<0,A,0><0,A-FIN,12><6+3,A,12>texture{Tex_108}} #end
  193. #if(A= 9) triangle{<0,A,0><0,A-FIN,12><6+3,A,12>texture{Tex_109}} #end
  194. #if(A=10) triangle{<0,A,0><0,A-FIN,12><6+3,A,12>texture{Tex_110}} #end
  195. #if(A=11) triangle{<0,A,0><0,A-FIN,12><6+3,A,12>texture{Tex_111}} #end
  196.  
  197.                 #declare Count_Temp = Count_Temp + 2
  198.                 #declare A = A + 1 #end
  199.  
  200.         // Bottom.
  201.                 #declare A = 1 #while ( A <= 11 )
  202.  
  203. #if(A= 1) triangle{<A,0,0><A-FIN,0,12><A,6+3,12>texture{Tex_201}} #end
  204. #if(A= 2) triangle{<A,0,0><A-FIN,0,12><A,6+3,12>texture{Tex_202}} #end
  205. #if(A= 3) triangle{<A,0,0><A-FIN,0,12><A,6+3,12>texture{Tex_203}} #end
  206. #if(A= 4) triangle{<A,0,0><A-FIN,0,12><A,6+3,12>texture{Tex_204}} #end
  207. #if(A= 5) triangle{<A,0,0><A-FIN,0,12><A,6+3,12>texture{Tex_205}} #end
  208. #if(A= 6) triangle{<A,0,0><A-FIN,0,12><A,6+3,12>texture{Tex_206}} #end
  209. #if(A= 7) triangle{<A,0,0><A-FIN,0,12><A,6+3,12>texture{Tex_207}} #end
  210. #if(A= 8) triangle{<A,0,0><A-FIN,0,12><A,6+3,12>texture{Tex_208}} #end
  211. #if(A= 9) triangle{<A,0,0><A-FIN,0,12><A,6+3,12>texture{Tex_209}} #end
  212. #if(A=10) triangle{<A,0,0><A-FIN,0,12><A,6+3,12>texture{Tex_210}} #end
  213. #if(A=11) triangle{<A,0,0><A-FIN,0,12><A,6+3,12>texture{Tex_211}} #end
  214.  
  215.  
  216. #if(A= 1) triangle{<A,0,0><A+FIN,0,12><A,6+3,12>texture{Tex_301}} #end
  217. #if(A= 2) triangle{<A,0,0><A+FIN,0,12><A,6+3,12>texture{Tex_302}} #end
  218. #if(A= 3) triangle{<A,0,0><A+FIN,0,12><A,6+3,12>texture{Tex_303}} #end
  219. #if(A= 4) triangle{<A,0,0><A+FIN,0,12><A,6+3,12>texture{Tex_304}} #end
  220. #if(A= 5) triangle{<A,0,0><A+FIN,0,12><A,6+3,12>texture{Tex_305}} #end
  221. #if(A= 6) triangle{<A,0,0><A+FIN,0,12><A,6+3,12>texture{Tex_306}} #end
  222. #if(A= 7) triangle{<A,0,0><A+FIN,0,12><A,6+3,12>texture{Tex_307}} #end
  223. #if(A= 8) triangle{<A,0,0><A+FIN,0,12><A,6+3,12>texture{Tex_308}} #end
  224. #if(A= 9) triangle{<A,0,0><A+FIN,0,12><A,6+3,12>texture{Tex_309}} #end
  225. #if(A=10) triangle{<A,0,0><A+FIN,0,12><A,6+3,12>texture{Tex_310}} #end
  226. #if(A=11) triangle{<A,0,0><A+FIN,0,12><A,6+3,12>texture{Tex_311}} #end
  227.  
  228.                 #declare Count_Temp = Count_Temp + 2
  229.                 #declare A = A + 1 #end
  230.  
  231.         // Right.
  232.                 #declare A = 1 #while ( A <= 11 )
  233.  
  234. #if(A= 1) triangle{<12,A,0><12,A-FIN,12><6-3,A,12>texture{Tex_401}} #end
  235. #if(A= 2) triangle{<12,A,0><12,A-FIN,12><6-3,A,12>texture{Tex_402}} #end
  236. #if(A= 3) triangle{<12,A,0><12,A-FIN,12><6-3,A,12>texture{Tex_403}} #end
  237. #if(A= 4) triangle{<12,A,0><12,A-FIN,12><6-3,A,12>texture{Tex_404}} #end
  238. #if(A= 5) triangle{<12,A,0><12,A-FIN,12><6-3,A,12>texture{Tex_405}} #end
  239. #if(A= 6) triangle{<12,A,0><12,A-FIN,12><6-3,A,12>texture{Tex_406}} #end
  240. #if(A= 7) triangle{<12,A,0><12,A-FIN,12><6-3,A,12>texture{Tex_407}} #end
  241. #if(A= 8) triangle{<12,A,0><12,A-FIN,12><6-3,A,12>texture{Tex_408}} #end
  242. #if(A= 9) triangle{<12,A,0><12,A-FIN,12><6-3,A,12>texture{Tex_409}} #end
  243. #if(A=10) triangle{<12,A,0><12,A-FIN,12><6-3,A,12>texture{Tex_410}} #end
  244. #if(A=11) triangle{<12,A,0><12,A-FIN,12><6-3,A,12>texture{Tex_411}} #end
  245.  
  246. #if(A= 1) triangle{<12,A,0><12,A+FIN,12><6-3,A,12>texture{Tex_501}} #end
  247. #if(A= 2) triangle{<12,A,0><12,A+FIN,12><6-3,A,12>texture{Tex_502}} #end
  248. #if(A= 3) triangle{<12,A,0><12,A+FIN,12><6-3,A,12>texture{Tex_503}} #end
  249. #if(A= 4) triangle{<12,A,0><12,A+FIN,12><6-3,A,12>texture{Tex_504}} #end
  250. #if(A= 5) triangle{<12,A,0><12,A+FIN,12><6-3,A,12>texture{Tex_505}} #end
  251. #if(A= 6) triangle{<12,A,0><12,A+FIN,12><6-3,A,12>texture{Tex_506}} #end
  252. #if(A= 7) triangle{<12,A,0><12,A+FIN,12><6-3,A,12>texture{Tex_507}} #end
  253. #if(A= 8) triangle{<12,A,0><12,A+FIN,12><6-3,A,12>texture{Tex_508}} #end
  254. #if(A= 9) triangle{<12,A,0><12,A+FIN,12><6-3,A,12>texture{Tex_509}} #end
  255. #if(A=10) triangle{<12,A,0><12,A+FIN,12><6-3,A,12>texture{Tex_510}} #end
  256. #if(A=11) triangle{<12,A,0><12,A+FIN,12><6-3,A,12>texture{Tex_511}} #end
  257.  
  258.                 #declare Count_Temp = Count_Temp + 2
  259.                 #declare A = A + 1 #end
  260.  
  261.         // Top.
  262.                 #declare A = 1 #while ( A <= 11 )
  263.  
  264. #if(A= 1) triangle{<A,12,0><A+FIN,12,12><A,6-3,12>texture{Tex_601}} #end
  265. #if(A= 2) triangle{<A,12,0><A+FIN,12,12><A,6-3,12>texture{Tex_602}} #end
  266. #if(A= 3) triangle{<A,12,0><A+FIN,12,12><A,6-3,12>texture{Tex_603}} #end
  267. #if(A= 4) triangle{<A,12,0><A+FIN,12,12><A,6-3,12>texture{Tex_604}} #end
  268. #if(A= 5) triangle{<A,12,0><A+FIN,12,12><A,6-3,12>texture{Tex_605}} #end
  269. #if(A= 6) triangle{<A,12,0><A+FIN,12,12><A,6-3,12>texture{Tex_606}} #end
  270. #if(A= 7) triangle{<A,12,0><A+FIN,12,12><A,6-3,12>texture{Tex_607}} #end
  271. #if(A= 8) triangle{<A,12,0><A+FIN,12,12><A,6-3,12>texture{Tex_608}} #end
  272. #if(A= 9) triangle{<A,12,0><A+FIN,12,12><A,6-3,12>texture{Tex_609}} #end
  273. #if(A=10) triangle{<A,12,0><A+FIN,12,12><A,6-3,12>texture{Tex_610}} #end
  274. #if(A=11) triangle{<A,12,0><A+FIN,12,12><A,6-3,12>texture{Tex_611}} #end
  275.  
  276. #if(A= 1) triangle{<A,12,0><A-FIN,12,12><A,6-3,12>texture{Tex_701}} #end
  277. #if(A= 2) triangle{<A,12,0><A-FIN,12,12><A,6-3,12>texture{Tex_702}} #end
  278. #if(A= 3) triangle{<A,12,0><A-FIN,12,12><A,6-3,12>texture{Tex_703}} #end
  279. #if(A= 4) triangle{<A,12,0><A-FIN,12,12><A,6-3,12>texture{Tex_704}} #end
  280. #if(A= 5) triangle{<A,12,0><A-FIN,12,12><A,6-3,12>texture{Tex_705}} #end
  281. #if(A= 6) triangle{<A,12,0><A-FIN,12,12><A,6-3,12>texture{Tex_706}} #end
  282. #if(A= 7) triangle{<A,12,0><A-FIN,12,12><A,6-3,12>texture{Tex_707}} #end
  283. #if(A= 8) triangle{<A,12,0><A-FIN,12,12><A,6-3,12>texture{Tex_708}} #end
  284. #if(A= 9) triangle{<A,12,0><A-FIN,12,12><A,6-3,12>texture{Tex_709}} #end
  285. #if(A=10) triangle{<A,12,0><A-FIN,12,12><A,6-3,12>texture{Tex_710}} #end
  286. #if(A=11) triangle{<A,12,0><A-FIN,12,12><A,6-3,12>texture{Tex_711}} #end
  287.  
  288.                 #declare Count_Temp = Count_Temp + 2
  289.                 #declare A = A + 1 #end
  290.  
  291. // Border pieces on all four front edges (they overlap each other...
  292. //                                        ...but so what!).
  293.  
  294.         #declare TEMP = 0.5
  295.  
  296.         // Top.
  297.         triangle { <0,12,0><12,12,0><6,12+TEMP,0> texture{Tex_B} }
  298.         triangle { <0,12,0><12,12,0><6,12-TEMP,0> texture{Tex_B} }
  299.  
  300.         // Right.
  301.         triangle { <12,0,0><12,12,0><12+TEMP,6,0> texture{Tex_B} }
  302.         triangle { <12,0,0><12,12,0><12-TEMP,6,0> texture{Tex_B} }
  303.  
  304.         // Bottom.
  305.         triangle { <0,0,0><12,0,0><6,0+TEMP,0> texture{Tex_B} }
  306.         triangle { <0,0,0><12,0,0><6,0-TEMP,0> texture{Tex_B} }
  307.  
  308.         // Left.
  309.         triangle { <0,0,0><0,12,0><0+TEMP,6,0> texture{Tex_B} }
  310.         triangle { <0,0,0><0,12,0><0-TEMP,6,0> texture{Tex_B} }
  311.  
  312.         #declare Count_Temp = Count_Temp + 8
  313.  
  314.         } // End of mesh.
  315.  
  316. //------------------------------------------------------------------->
  317. //
  318. // End of this file.
  319.  
  320.